<?php


class TemplateSettingTable extends Doctrine_Table {
    public static function getInstance() {
        return Doctrine_Core::getTable('TemplateSetting');
    }

    public function getCurrent() {
    	$settings=Settings::getInstance();
    	$templateId=$settings->getValue("template.template_id", 1);
		return $this->createQuery()->addWhere("template_id = ?", $templateId)->fetchOne();
    }

}